import { createApp } from 'vue'
import './style.css'
import Start from './Start.vue'
import App from './components/shenpi.vue'


//访问router下的index路由对象
import router from '@/router/index.js'
import VueAxios from 'vue-axios'

import axios from '@/axios/index.js'
//统一请求
// import axios from '@/request/index.js'

//导入element-plus的依赖
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import qs from 'qs'

/* 全局导入element-icon */
import * as ElIcons from '@element-plus/icons-vue'






//实例化vue对象
let app=createApp(App)
//使用路由，在其他组件中可以通过this.$router访问全局的router对象
app.use(router)
//使用axios，在其他组件中可通过this.$axios访问路由对象
app.use(VueAxios,axios)
//使用element-plus
app.use(ElementPlus)
// app.config.globalProperties.Qs=qs
app.use(qs)
// 去除浏览器的警告信息
app.config.warnHandler = () => null;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount("#app")